-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MongoDB Atlas VectorDB [clean] #2996
Conversation
First steps towards MongoDB as a VectorDB.
Co-authored-by: Jib <Jibzade@gmail.com>
Co-authored-by: Jib <Jibzade@gmail.com>
Co-authored-by: Jib <Jibzade@gmail.com>
Co-authored-by: Jib <Jibzade@gmail.com>
Co-authored-by: Jib <Jibzade@gmail.com>
Co-authored-by: Jib <Jibzade@gmail.com>
Co-authored-by: Jib <Jibzade@gmail.com>
update PREDEFINED_VECTOR_DB and change name to MongoDBAtlasVectorDB; upsert=True update logic; no more index/collection name check.
Co-authored-by: Jib <Jibzade@gmail.com>
Co-authored-by: Jib <Jibzade@gmail.com>
with MongoDB Atlas Vector Search indexes, things work a little differently than traditional MongoDB indexes. Atlas Search indexes are separate entities managed by the Atlas Search service. Deleting a collection doesn't automatically remove the associated Atlas Search index - leading to errors
Co-authored-by: Jib <Jibzade@gmail.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
Update agentchat_mongodb_RetrieveChat.ipynb Update agentchat_mongodb_RetrieveChat.ipynb
Test is still skipped: https://github.com/microsoft/autogen/actions/runs/9621000866/job/26540852406?pr=2996#step:11:26 Need to update contrib-tests.yml
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2996 +/- ##
==========================================
- Coverage 32.49% 26.01% -6.49%
==========================================
Files 93 100 +7
Lines 10097 10299 +202
Branches 2167 2356 +189
==========================================
- Hits 3281 2679 -602
- Misses 6532 7318 +786
- Partials 284 302 +18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Co-authored-by: Li Jiang <bnujli@gmail.com>
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
- | MongoDB Credentials | 54655e8 | notebook/agentchat_mongodb_RetrieveChat.ipynb | View secret | |
- | MongoDB Credentials | 3122301 | notebook/agentchat_mongodb_RetrieveChat.ipynb | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
@thinkall - I think there is something going on with testing retrieval?
|
I polluted this PR :( sorry -- lets try this one last time |
There is no need to worry about the commit history. Make a new PR will lost the track history. |
Why are these changes needed?
MongoDB has been ranked as the best vector database(https://www.mongodb.com/blog/post/atlas-vector-search-commands-highest-developer-nps-retool-state-ai-2023-survey) in the Retool AI report, so it is quite important to add MongoDB vector search as an option for Autogen RAG.
You can easily start the MongoDB vector search on a free tier M0 MongoDB Atlas cluster. Free tier cluster provides the full functionality of the MongoDB vector search. https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-overview/
But why is MongoDB such a standout? Well, there are a few key reasons.
As such, implementing MongoDB as a Retrieval Agent can unlock new potential in your AI applications, bringing the full power of vector storage to bear.
Related issue number: 711
Closes #711
Checks